package com.example.demo.Controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/11/3-11-03-11:14
 * @Description：com.example.demo.Controller  后端需要允许后端跨域请求
 */
@RestController
//@CrossOrigin
public class HelloController {

    //远程通信  Http/RPC
    @GetMapping("/hello")
    public String hello(){
        return "hello world";
    }
}
